package com.javabaas.server.novel_server.cats.controller;

import com.javabaas.server.novel_server.cats.service.CatService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(value = "/cats")
public class CatsController {

    @Autowired
    CatService catService;

    @RequestMapping(value = "", method = RequestMethod.GET)
    @ApiOperation(value = "获取分类", notes = "")
    public Object cats() {
        return catService.cats();
    }

}
